package com.ziyueyuwen.xiniao.bean.ao;

import com.ziyueyuwen.xiniao.annotation.ParamValidated;
import com.ziyueyuwen.xiniao.enums.CourseQuarterEnum;
import com.ziyueyuwen.xiniao.enums.GradeEnum;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author wancheng  on 2018/12/18.
 */
public class CourseSaveAO {
    private Integer courseId;
    @NotBlank(message = "课程名不能为空")
    private String  courseName;
    private GradeEnum grade;
    @NotNull(message = "year为null")
    private Integer year;
    @NotNull(message = "quarter为null")
    private CourseQuarterEnum quarter;
    @NotNull(message = "lessonNum为null")
    private Integer lessonNum;
    @ParamValidated(name = "description",message = "{name}不合法")
    private String description;
    @ParamValidated(name = "imageUrl",message = "{name}不合法")
    private String imageUrl;

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public GradeEnum getGrade() {
        return grade;
    }

    public void setGrade(GradeEnum grade) {
        this.grade = grade;
    }

    public Integer getLessonNum() {
        return lessonNum;
    }

    public void setLessonNum(Integer lessonNum) {
        this.lessonNum = lessonNum;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public CourseQuarterEnum getQuarter() {
        return quarter;
    }

    public void setQuarter(CourseQuarterEnum quarter) {
        this.quarter = quarter;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }
}
